import { reqAddressInfo } from "@/api"
const state = {
    addressInfo:{}
}
const mutations = {
    ADDRESSINFO(state,addressInfo){
        state.addressInfo = addressInfo
    }
}
const actions = {
    async addressInfo({commit},addressInfo){
       let result =  await reqAddressInfo()
       if(result == 200){
        commit('ADDRESSINFO',result.data)    
    }
    }
}
const getters = {

}
export default{
    state,
    mutations,
    actions,
    getters
}